<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <title>Document</title>
        <script src="https://cdn.tailwindcss.com"></script>
    </head>
    <body>
        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">Flex布局</h1>
            <div
                class="flex flex-wrap h-72 w-100 bg-gray-100 justify-around items-center"
            >
                <div class="p-10 border border-blue-600 bg-blue-100">01</div>
                <div class="p-10 border border-blue-600 bg-blue-100">02</div>
                <div class="p-10 border border-blue-600 bg-blue-100">03</div>
                <div class="p-10 border border-blue-600 bg-blue-100">04</div>
            </div>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">Flex布局</h1>
            <div
                class="flex flex-col gap-4 w-100 bg-gray-200 justify-around items-center"
            >
                <div class="order-4 p-10 border border-blue-600 bg-blue-100">
                    01
                </div>
                <div class="p-10 border border-blue-600 bg-blue-100">02</div>
                <div class="p-10 border border-blue-600 bg-blue-100">03</div>
                <div class="p-10 border border-blue-600 bg-blue-100">04</div>
            </div>
        </section>

        <section class="m-3 p-5 border-2 border-black-500">
            <h1 class="text-lg mb-2 text-red-500 font-bold">Flex布局</h1>
            <div class="flex bg-gray-300">
                <div
                    class="w-64 flex-none p-10 border border-blue-600 bg-blue-100"
                >
                    01
                </div>
                <div
                    class="w-64 flex-initial p-10 border border-blue-600 bg-blue-100"
                >
                    02
                </div>
            </div>
        </section>
    </body>
</html>
